<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
			    xmlns:ui="http://java.sun.com/jsf/facelets"
			    xmlns:h="http://java.sun.com/jsf/html"
			    xmlns:f="http://java.sun.com/jsf/core"    
			    template="./template/template_login.xhtml">
    
    <ui:define name="title">
        Listado de Condominos
    </ui:define>
    
    <ui:define name="content">
			<h:form id="listadoCondominosForm" styleClass="plain">			
				<div class="box box-100 altbox">
					<div class="boxin">
						<div class="header">
							<h3>Cond&oacute;minos</h3>
							<a class="button" href="#">Nuevo</a>
						</div>
						<div class="content">
							<h:dataTable value="#{condominiumsBean.condominiumsList}" var="row">
											
								<h:column>
									<f:facet name="header"><h:outputText value="Casa" /></f:facet>
									#{row.houseNumber}
								</h:column>
								
								<h:column>		
									<f:facet name="header"> <h:outputText value="Nombre" /></f:facet>		
									#{row.userView.nombre} #{row.userView.apaterno} #{row.userView.amaterno}
								</h:column>
																		
								<h:column>		
									<f:facet name="header"> <h:outputText value="Correo" /></f:facet>		
									#{row.userView.email}
								</h:column>							
								
								<h:column>
									<f:facet name="header"><h:outputText value="Tel. Casa" /></f:facet>
									#{row.userView.telCasa}
								</h:column>					
							
								<h:column>
									<f:facet name="header"><h:outputText value="Tel. Celular" /></f:facet>
									#{row.userView.telCelular}
								</h:column>			
							</h:dataTable>
						</div>
					</div>
				</div>													
			</h:form>			
	</ui:define>
    
</ui:composition>